#include<stdio.h>
int main() {
    srand(time(NULL));
    int tryTime=7,i;
    int computer=rand()%100+1;

    int start=1,end=100;
    int user;
    int success=0;
    for(i=0;i<tryTime;i++)
    {
      //  scanf("%d",&user);
      user=(end+start)/2;
      printf("------user =%d----------\n",user);
        if(user==computer)  {
            puts("You win");
            success=1;
            break;
        }else if(user>computer) {
            puts("too bigger");
            end=user-1;
        }else        {
            puts("too small");
            start=user+1;
        }

    }
   if(!success) puts("You lose!");
    return 0;
}
